package com.bins.dentist.clinic.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bins.dentist.clinic.model.dto.PermissionDto;
import com.bins.dentist.clinic.model.dto.PermissionPageDto;
import com.bins.dentist.clinic.model.dto.RolePermDto;
import com.bins.dentist.clinic.entity.PermissionEntity;
import com.bins.dentist.clinic.model.vo.PermissionTreeVo;
import com.bins.dentist.clinic.model.vo.PermissionVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author bins
 * @since 2023-02-20 20:53:31
 */
public interface PermissionService extends IService<PermissionEntity> {

    IPage<PermissionVo> getPage(PermissionPageDto pageDto);

    PermissionVo getDetailById(PermissionDto dto);

    PermissionVo savePermission(PermissionDto dto);

    Integer deletePermission(PermissionDto dto);

    List<PermissionTreeVo> permTreeList();

    List<PermissionEntity> findAll();

    Integer bindRole(RolePermDto dto);
}
